<!DOCTYPE html>
<meta http-equiv = "content-type" content = "text/html; charset = UTF-8">
<?php
	session_start();
?>
<html>
	<head>
		<title>我的主页-留言板</title>
		<link rel = "stylesheet" href = "base.css">
		<style>
			div#content {
				height: 400px;
				width: 1190px;
				margin-top:0;
				float: left;
				
			}
			div#page {
				height: 400px;
				width: 200px;
				float: left;
			}
			div#msgboard {
				height: 400px;
				margin-top: 50px;
				float: left;
			}
			div#header {
				width: 1040px;
				text-align: center;
				float: left;
			}
			div#logo {
				width: 150px;
				float: left;
			}
			div#input {
				text-align: center;
			}
			h1 {
				font-size: 18px;
			}
		</style>
	</head>
	<body class = "content">
		<div id="container">
			<div id = "logo">
				<img src = "image/logo.gif"  width = "150px" height = "50px"/>
			</div>
			<div id = "header">
				<h1><a href = "index2.php">首页</a> | <a href = "msgboard.php">留言板</a> | <a href = "message.php">查看留言</a> | <a href = "userinfo.php">个人信息</a> | 
					<a href = "exit.php">退出</a></h1>
				<div id = "hello">
					<?php
					echo "$_SESSION[user] 你好！";
					?></div>
			</div>
		<div id = "content">
			<hr>
			<div id = "page"></div>
			<div id = "msgboard">
				<form action = "insert.php", method = "post">
				<div>标题：<input type = "text" name = "title" size = 50></div>
				<div>内容：<br/>
				<div>
				<script charset="utf-8" src="KindEditor/kindeditor-min.js" 
					type="text/javascript"></script>
    			<script type="text/javascript" charset="utf-8">
        			var editor;
        			KindEditor.ready(function(K) 
        			{
                	editor = K.create('#txtContent');
        			});
    			</script>
    			<textarea name = "content" cols="60" id="txtContent" style="width: 520px; height: 300px;" runat="server"
        		readonly="readonly"></textarea>
				<div id = "input"><input type = "submit" name = "msg" value = "提交">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset"></div>	
				</form>
			</div>
			</div>
		</div>
		<div id="footer"><hr>Copyright © 2014 xiaolongge</div>
		</div>
	</body>
</html>